home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / B-C / C++ FAQ Reference 1.0.sit / C++ FAQ Reference 1.0.rsrc / TEXT_136.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  602 b   |  1 lines

  1. Almost. C++ is as close as possible to compatible with ANSI-C but no closer. In practice, the major difference is that C++ requires prototypes, and that 'f()' declares a function that takes no parameters, while ANSI-C rules state that 'f()' declares a function that takes any number of parameters of any type. There are some very subtle differences as well, like the sizeof a char literal being equal to the sizeof a char (in ANSI-C, sizeof('x') is the sizeof an int). Structure 'tags' are in the same namespace as other names in C++, but C++ has some warts to take care of backward compatibility here.